package org.example.struct.array2;

import java.util.Arrays;

/**
 * @author liyishan
 * @date 2024/7/26 15:57
 * @apiNote
 */

public class Test02740FindValueOfPartition {

    public int findValueOfPartition(int[] nums) {
        Arrays.sort(nums);
        int res = Integer.MAX_VALUE;
        for(int i = 1;i<nums.length;i++){
            res = Math.min(res,nums[i]-nums[i-1]);
        }
        return res;
    }


}
